
package com.zhitan.ems.alarm.wrapper;
import com.zhitan.ems.alarm.vo.AlarmRuleLevelVO;
import com.zhitan.ems.alarm.entity.AlarmRuleLevelEntity;
import lombok.AllArgsConstructor;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;
  /**
 * 报警等级 包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2025-10-04 22:04:24
 */
public class AlarmRuleLevelWrapper extends BaseEntityWrapper<AlarmRuleLevelEntity, AlarmRuleLevelVO>  {
    public static AlarmRuleLevelWrapper build() {
        return new AlarmRuleLevelWrapper();
    }
	@Override
	public AlarmRuleLevelVO entityVO(AlarmRuleLevelEntity alarmRuleLevel) {
		if(alarmRuleLevel==null) {
			return null;
		}
		AlarmRuleLevelVO alarmRuleLevelVO = BeanUtil.copy(alarmRuleLevel, AlarmRuleLevelVO.class);
		return alarmRuleLevelVO;
	}

}
